package cn.tedu.spring.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextUserDao {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext
                ("cn.tedu.spring.bean");
        UserDao userDao = ctx.getBean(UserDao.class);
        System.out.println("userDao="+userDao);
    }
}
